package com.sugon.modules.analyse.model.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @description: 设备故障类别次数统计
 * @author: YuXD
 * @create: 2020-06-01 16:01
 **/
public class DevFaultTypeTimeStat implements Serializable {

    /**
     * 横坐标列表
     */
    private List<String> xAxisData;

    /**
     * 故障次数
     */
    private List<Integer> faultTimes;

    /**
     * 故障次数累计百分比
     */
    private List<Integer> accumulativeRate;

    public DevFaultTypeTimeStat() {
        this.xAxisData = new ArrayList<>();
        this.faultTimes = new ArrayList<>();
        this.accumulativeRate = new ArrayList<>();
    }

    public void add(String xaxis,Integer faultTime){
        this.xAxisData.add(xaxis);
        this.faultTimes.add(faultTime);
    }

    public List<String> getxAxisData() {
        return xAxisData;
    }

    public List<Integer> getFaultTimes() {
        return faultTimes;
    }

    public List<Integer> getAccumulativeRate() {
        return accumulativeRate;
    }
}
